package com.kidedu.entity.dto;

import java.util.Date;

import com.kidedu.entity.KArt;
import com.kidedu.entity.KStudent;

public class KArtDTO {
	private Byte aid;
	
	private String acontent;

	private Byte atype;
	
	private String acomment;
	
	private String astudentid;
	
	private Date acreattime;
	
	private String stuname;
	
	private String stuclass;

	public KArtDTO(KArt kart,KStudent kstu){
		this.aid = kart.getAid();
		this.acontent = kart.getAcontent().split(":")[0];
		this.atype = kart.getAtype();
		this.acomment = kart.getAcomment();
		this.astudentid = kart.getAstudentid();
		this.acreattime = kart.getAcreattime();
		this.stuname = kstu.getSusername();
		this.stuclass = kstu.getSclass();
	}
	
	public Byte getAid() {
		return aid;
	}

	public void setAid(Byte aid) {
		this.aid = aid;
	}

	public String getAcontent() {
		return acontent;
	}

	public void setAcontent(String acontent) {
		this.acontent = acontent;
	}

	public Byte getAtype() {
		return atype;
	}

	public void setAtype(Byte atype) {
		this.atype = atype;
	}

	public String getAcomment() {
		return acomment;
	}

	public void setAcomment(String acomment) {
		this.acomment = acomment;
	}

	public String getAstudentid() {
		return astudentid;
	}

	public void setAstudentid(String astudentid) {
		this.astudentid = astudentid;
	}

	public Date getAcreattime() {
		return acreattime;
	}

	public void setAcreattime(Date acreattime) {
		this.acreattime = acreattime;
	}

	public String getStuname() {
		return stuname;
	}

	public void setStuname(String stuname) {
		this.stuname = stuname;
	}

	public String getStuclass() {
		return stuclass;
	}

	public void setStuclass(String stuclass) {
		this.stuclass = stuclass;
	}
	
}
